package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.TenantSchemes;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TenantSchemesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TenantSchemes record);

    int insertSelective(TenantSchemes record);

    TenantSchemes selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantSchemes record);

    int updateByPrimaryKey(TenantSchemes record);

    TenantSchemes getSchemeByMap(Map<String, Object> map);

    List<TenantSchemes> listUserSchemeByUser_id(Map<String, Object> map);

    List<TenantSchemes> listLatestSchemes(Map<String, Object> map);

    Long listLatestSchemesByCount(Map<String, Object> map);

    List<TenantSchemes> listHistorySchemes(Map<String, Object> map);

    Long listHistorySchemesCount(Map<String, Object> map);

    Long listAllSchemesCount(Map<String, Object> map);

    Long listSchemeJoinUserCount(Map<String, Object> map);

    List<Map<String, Object>> statSchemeQuestion(Map<String, Object> map);
}